package com.gs.gulishopp.gulishoppmemeber.feign;

import com.gs.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: create by leiyijie
 * @date:2021/2/25 15:47
 * 　Feign是一种声明式、模板化的HTTP客户端
 *   声明式调用是指，就像调用本地方法一样调用远程方法，无需感知操作远程http请求。
 *   所以必须在本地声明接口
 */
@FeignClient(name = "gulishopp-coupon") //调用的服务
public interface MemeberFeign {

    @RequestMapping("gulishoppcoupon/coupon/test/list")
    public R membercoupons();

}
